﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddStudents.aspx.cs" Inherits="SchoolAdministration.AddStudents" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <style type="text/css">
        .lblSuccess
        {
            color:#0c81a5; font-size:16px;
        }
        .ddlwidth
        {
            width:75px!important; 
          
        }
        .ddlwidthd
        {width:50px!important; 
        }
        .ddlwidthm
        {width:110px!important; 
        }
        .formsubtitle
        {
        border-bottom: 1px solid #CCCCCC;
    clear: both;
    float: left;
    margin-bottom: 20px;
    padding: 0 0 5px;
    width: 100%;
    color:#027295;
    font-size:16px;
        }
        .fieldvalidator
        {
            padding-left:40px; color:red;
        }
          .checkbox
          {
              margin-left:190px;
              padding-right:20px;
              float:left;
          }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">
     <h3 class="page-title">Add SUbject Details</h3>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="breadcrum" runat="server">
    <ul class="breadcrumb">
        <li><a href="#">School Administrator</a><span class="divider">/</span></li>
        <li><a href="#">Student Manangement</a><span class="divider">/</span></li>
        <li class="active">Add Student Details</li>                      
    </ul>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="mainchangingpart" runat="server">

    <div style="padding:25px;">
        <div class="widget yellow">
        <div class="widget-title">
            <h4>Add Student Details</h4>
            <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <a href="javascript:;" class="icon-remove"></a>
            </span>
         </div>
                    <!-- TEXTBOXES -->
        <div class="widget-body">
                   <div class="formsubtitle">Student's Details</div><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Roll</label>
                   <asp:TextBox ID="TxtRoll" CssClass="text large required"  runat="server" ></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ValidationGroup="addstudentdetails" ErrorMessage="First Name is Required" ControlToValidate="TxtRoll" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >First Name</label>
                   <asp:TextBox ID="TxtStudentFName" CssClass="text large required"  runat="server" ></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="addstudentdetails" ErrorMessage="First Name is Required" ControlToValidate="TxtStudentFname" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Middle Name</label> 
                   <asp:TextBox ID="TxtMiddleName" CssClass="text large required"  runat="server" ></asp:TextBox><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Last Name</label>
                   <asp:TextBox ID="TxtStudentLName" CssClass="text large required" runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="addstudentdetails" ErrorMessage="Last Name is Required" ControlToValidate="TxtStudentLname" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >DOB</label>
                    <asp:DropDownList ID="ddlYear" CssClass="ddlwidth" runat="server" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged"></asp:DropDownList>
                    <asp:DropDownList ID="ddlMonth" CssClass="ddlwidthm" runat="server" OnSelectedIndexChanged="ddlMonth_SelectedIndexChanged"></asp:DropDownList>
                    <asp:DropDownList ID="ddlDays" CssClass="ddlwidthd" runat="server"></asp:DropDownList><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Grade</label>
                   <asp:TextBox ID="Grade" CssClass="text large required" runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ValidationGroup="addstudentdetails" ErrorMessage="Last Name is Required" ControlToValidate="Grade" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Section</label>            
                   <asp:TextBox ID="TxtSection" CssClass="text large required" runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="Choose Section" ControlToValidate="TxtSection"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Address</label>
                   <asp:TextBox ID="StudentAddress" CssClass="text large required"  runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="addstudentdetails" ErrorMessage="Address is Required" ControlToValidate="StudentAddress" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Mobile No</label>
                   <asp:TextBox ID="StuMobile" CssClass="text large required"  runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ValidationGroup="addstudentdetails" ErrorMessage="Mobile Number is Required" ControlToValidate="StuMobile" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                    <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Phone No</label>
                   <asp:TextBox ID="txtstPhone" CssClass="text large required"  runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ValidationGroup="addstudentdetails" ErrorMessage="Phone Number is Required" ControlToValidate="txtstPhone" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                    
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Photo</label>
                    <asp:FileUpload ID="fupPhoto" runat="server" /><asp:Label ID="lblerror" runat="server" Text="Label"></asp:Label><br /><br />
                  <asp:CheckBox ID="ChkHostel" runat="server" CssClass="checkbox"  /> <label >Hosteler</label>
                 <asp:CheckBox ID="ChkTransport" runat="server" CssClass="checkbox"  /><label>Use transportation</label>
                    <div class="formsubtitle">Parent's Details</div>
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >First Name</label>
                   <asp:TextBox ID="ParentFName" CssClass="text large required"  runat="server" ></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ValidationGroup="addstudentdetails" ErrorMessage="First Name is Required" ControlToValidate="ParentFName" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
         <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Middle Name</label>
                   <asp:TextBox ID="ParentMName" CssClass="text large required"  runat="server" ></asp:TextBox><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Last Name</label>
                   <asp:TextBox ID="ParentLName" CssClass="text large required" runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ValidationGroup="addstudentdetails" ErrorMessage="Last Name is Required" ControlToValidate="ParentLName" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />

                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Address</label>
                   <asp:TextBox ID="ParentAddress" CssClass="text large required"  runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ValidationGroup="addstudentdetails" ErrorMessage="Address is Required" ControlToValidate="ParentAddress" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Phone No</label>
                   <asp:TextBox ID="ParentPhone" CssClass="text large required" runat="server"></asp:TextBox><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Mobile No</label>
                   <asp:TextBox ID="ParentMobile" CssClass="text large required"  runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ValidationGroup="addstudentdetails" ErrorMessage="Mobile Number is Required" ControlToValidate="ParentMobile" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
           
            <label style="width:150px; padding-right:20px; float:left; font-size:16px;" ></label> <asp:Button ID="Button1" runat="server" CssClass="submit" Text="Submit" OnClick="Button1_Click" ValidationGroup="addstudentdetails" />    
            <asp:Label ID="lblSucess" CssClass="lblSuccess" runat="server" Text="Label"></asp:Label></div>    
        </div>   
        </div>    	
</asp:Content>